package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/*
* Mybatis的注解，会为该接口创建实现类
* */
@Mapper
public interface UserMapper {
    //1.用户表中插入1条数据
    //@Insert("Insert into user (id,username,password,nickname,created) values(#{id},#{username},#{password},#{nickname},#{created})")
    void insertUser(User user);
}
